package com.example.routeplansystem.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author: Lunaticer
 * @Create: 2022-02-11 10:08
 * @Tip: Keeping the eyes of the prize !
 * @Description: 时间工具类！
 */
public class DateUtil {

    //获取当前时间：
    public static String getFormatDate(){

        Date date = new Date();
        //时间戳
        long times = date.getTime();
        SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

        return formatter.format(date);
    }
}
